package com.open.rbac.config.properties;

import java.util.List;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.validation.annotation.Validated;

/**
 * Life参数配置
 */
@Getter
@Setter
@ToString
@Validated
@Configuration
@ConfigurationProperties(prefix = "admin")
@EnableConfigurationProperties(AdminProperties.class)
public class AdminProperties {

    private String name;

    private String version;

    private String logHome;

    private List<String> allowedOrigins;

    private List<String> allowedHttpMethods;

}
